package com.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;


@Component("car2")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Car {

    @Value("BENZ")
    private String brand;
    @Value("redaa")
    private String color;

}
